package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_EQ_TMPLT"
 *     
*/
public class CcpEqTmplt implements Serializable {

    /** identifier field */
    private String eqtGuid;

    /** nullable persistent field */
    private String eqtCode;

    /** nullable persistent field */
    private String eqtName;

    /** nullable persistent field */
    private String frameCode;

    /** nullable persistent field */
    private BigDecimal colNum;

    /** nullable persistent field */
    private String colWidth;

    /** nullable persistent field */
    private String align;

    /** nullable persistent field */
    private String conHeight;

    /** nullable persistent field */
    private String resultHeight;

    /** nullable persistent field */
    private String conWidth;

    /** nullable persistent field */
    private String resultWidth;

    /** nullable persistent field */
    private BigDecimal tagNum;

    /** nullable persistent field */
    private String isDefault;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public CcpEqTmplt(String eqtGuid, String eqtCode, String eqtName, String frameCode, BigDecimal colNum, String colWidth, String align, String conHeight, String resultHeight, String conWidth, String resultWidth, BigDecimal tagNum, String isDefault, String reserved1, String reserved2, String reserved3) {
        this.eqtGuid = eqtGuid;
        this.eqtCode = eqtCode;
        this.eqtName = eqtName;
        this.frameCode = frameCode;
        this.colNum = colNum;
        this.colWidth = colWidth;
        this.align = align;
        this.conHeight = conHeight;
        this.resultHeight = resultHeight;
        this.conWidth = conWidth;
        this.resultWidth = resultWidth;
        this.tagNum = tagNum;
        this.isDefault = isDefault;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public CcpEqTmplt() {
    }

    /** minimal constructor */
    public CcpEqTmplt(String eqtGuid) {
        this.eqtGuid = eqtGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="EQT_GUID"
     *         
     */
    public String getEqtGuid() {
        return this.eqtGuid;
    }

    public void setEqtGuid(String eqtGuid) {
        this.eqtGuid = eqtGuid;
    }

    /** 
     *            @hibernate.property
     *             column="EQT_CODE"
     *             length="10"
     *         
     */
    public String getEqtCode() {
        return this.eqtCode;
    }

    public void setEqtCode(String eqtCode) {
        this.eqtCode = eqtCode;
    }

    /** 
     *            @hibernate.property
     *             column="EQT_NAME"
     *             length="50"
     *         
     */
    public String getEqtName() {
        return this.eqtName;
    }

    public void setEqtName(String eqtName) {
        this.eqtName = eqtName;
    }

    /** 
     *            @hibernate.property
     *             column="FRAME_CODE"
     *             length="2"
     *         
     */
    public String getFrameCode() {
        return this.frameCode;
    }

    public void setFrameCode(String frameCode) {
        this.frameCode = frameCode;
    }

    /** 
     *            @hibernate.property
     *             column="COL_NUM"
     *             length="38"
     *         
     */
    public BigDecimal getColNum() {
        return this.colNum;
    }

    public void setColNum(BigDecimal colNum) {
        this.colNum = colNum;
    }

    /** 
     *            @hibernate.property
     *             column="COL_WIDTH"
     *             length="50"
     *         
     */
    public String getColWidth() {
        return this.colWidth;
    }

    public void setColWidth(String colWidth) {
        this.colWidth = colWidth;
    }

    /** 
     *            @hibernate.property
     *             column="ALIGN"
     *             length="2"
     *         
     */
    public String getAlign() {
        return this.align;
    }

    public void setAlign(String align) {
        this.align = align;
    }

    /** 
     *            @hibernate.property
     *             column="CON_HEIGHT"
     *             length="10"
     *         
     */
    public String getConHeight() {
        return this.conHeight;
    }

    public void setConHeight(String conHeight) {
        this.conHeight = conHeight;
    }

    /** 
     *            @hibernate.property
     *             column="RESULT_HEIGHT"
     *             length="10"
     *         
     */
    public String getResultHeight() {
        return this.resultHeight;
    }

    public void setResultHeight(String resultHeight) {
        this.resultHeight = resultHeight;
    }

    /** 
     *            @hibernate.property
     *             column="CON_WIDTH"
     *             length="10"
     *         
     */
    public String getConWidth() {
        return this.conWidth;
    }

    public void setConWidth(String conWidth) {
        this.conWidth = conWidth;
    }

    /** 
     *            @hibernate.property
     *             column="RESULT_WIDTH"
     *             length="10"
     *         
     */
    public String getResultWidth() {
        return this.resultWidth;
    }

    public void setResultWidth(String resultWidth) {
        this.resultWidth = resultWidth;
    }

    /** 
     *            @hibernate.property
     *             column="TAG_NUM"
     *             length="38"
     *         
     */
    public BigDecimal getTagNum() {
        return this.tagNum;
    }

    public void setTagNum(BigDecimal tagNum) {
        this.tagNum = tagNum;
    }

    /** 
     *            @hibernate.property
     *             column="IS_DEFAULT"
     *             length="1"
     *         
     */
    public String getIsDefault() {
        return this.isDefault;
    }

    public void setIsDefault(String isDefault) {
        this.isDefault = isDefault;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="100"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="100"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="300"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("eqtGuid", getEqtGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpEqTmplt) ) return false;
        CcpEqTmplt castOther = (CcpEqTmplt) other;
        return new EqualsBuilder()
            .append(this.getEqtGuid(), castOther.getEqtGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getEqtGuid())
            .toHashCode();
    }

}
